using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._RelationshipClasses
{
    /// <summary>
    /// <para>Remove Rule From Relationship Class</para>
    /// <para>Removes a rule from a relationship class.</para>
    /// <para>从关系类中删除规则。</para>
    /// </summary>    
    [DisplayName("Remove Rule From Relationship Class")]
    public class RemoveRuleFromRelationshipClass : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public RemoveRuleFromRelationshipClass()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_rel_class">
        /// <para>Input Relationship Class</para>
        /// <para>The relationship class with the rule to remove.</para>
        /// <para>具有要删除的规则的关系类。</para>
        /// </param>
        public RemoveRuleFromRelationshipClass(object _in_rel_class)
        {
            this._in_rel_class = _in_rel_class;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Remove Rule From Relationship Class";

        public override string CallName => "management.RemoveRuleFromRelationshipClass";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_rel_class, _origin_subtype, _destination_subtype, _remove_all, _out_rel_class];

        /// <summary>
        /// <para>Input Relationship Class</para>
        /// <para>The relationship class with the rule to remove.</para>
        /// <para>具有要删除的规则的关系类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Relationship Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_rel_class { get; set; }


        /// <summary>
        /// <para>Origin Subtype</para>
        /// <para>If the origin class has subtypes, the subtype that is associated with the relationship class rule to be deleted.</para>
        /// <para>如果源类具有子类型，则要删除与关系类规则关联的子类型。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Origin Subtype")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _origin_subtype { get; set; } = null;


        /// <summary>
        /// <para>Destination Subtype</para>
        /// <para>If the destination class has subtypes, the subtype that is associated with the relationship class rule to be deleted.</para>
        /// <para>如果目标类具有子类型，则要删除与关系类规则关联的子类型。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Destination Subtype")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _destination_subtype { get; set; } = null;


        /// <summary>
        /// <para>Remove All</para>
        /// <para><xdoc>
        ///   <para>Specifies the relationship rules to be removed from the relationship class.
        ///   <bulletList>
        ///     <bullet_item>Checked—All relationship rules will be removed from the input relationship class.  </bullet_item><para/>
        ///     <bullet_item>Unchecked—Only rules from the origin and destination subtypes specified will be removed. This is the default.  </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        /// <para>指定要从关系类中删除的关系规则。
        ///   <bulletList>
        ///     <bullet_item>选中 - 将从输入关系类中移除所有关系规则。</bullet_item><para/>
        ///     <bullet_item>未选中 - 仅移除指定源和目标子类型的规则。这是默认设置。 </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Remove All")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _remove_all { get; set; } = null;


        /// <summary>
        /// <para>Updated Relationship Class</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Relationship Class")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_rel_class { get; set; }


        public RemoveRuleFromRelationshipClass SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}